#define _CRT_SECURE_NO_WARNINGS

#include <iostream>
using namespace std;

class Date
{
private:
	int _year;
	int _month;
	int _day;
public:
	Date(int year = 1, int month = 1, int day = 1)
		:_year(year)
		,_month(month)
		,_day(day)
	{}

	void Print()
	{
		cout << _year << "-" << _month << "-" << _day << endl;
	}

	friend istream& operator>>(istream& in, Date& d);

	friend ostream& operator<<(ostream& out, const Date& d);
};

istream& operator>>(istream& in, Date& d)
{
	in >> d._year >> d._month >> d._day;

	return in;
}

ostream& operator<<(ostream& out, const Date& d)
{
	out << d._year << "/" << d._month << "/" << d._day << endl;

	return out;
}



int main()
{
	Date d1, d2;
	cin >> d1 >> d2;
	cout << d1 << d2;

	return 0;
}